package renguanyu.app.tools.controller;

import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;

public class TextCompressController {

	@FXML
	TextArea text;
	@FXML
	Button text2OnelineBtn;
	@FXML
	TextArea online;

	@FXML
	public void text2Oneline() {
		String textStr = text.getText();
		textStr = textStr.replace(" ", "");
		textStr = textStr.replace("\n", "");
		online.setText(textStr);
	}

}
